﻿namespace NEnsure.Rules
{
	public class UsernameRule : RegexRule
	{
		public override string RuleKey
		{
			get { return "Username Rule"; }
		}

		public UsernameRule()
			: base(@"^[a-zA-Z0-9\-_.$%#@,]*$", "{value} is not a valid username. Username can only contain letters [a-zA-Z], digits [0-9], or the following special characters: [-_.$%#@,]")
		{

		}
	}
}
